package com.zdya.combatdocuments.entity;

import com.baomidou.mybatisplus.annotation.*;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;


/**
 * 用户表
 */
@Data
@TableName("user")
public class User {
    @ApiModelProperty(value = "用户ID")
    @TableId(value = "id",type = IdType.AUTO)
    private Long id;

    @ApiModelProperty(value = "用户类型：0-管理员；1-普通用户")
    @TableField(fill = FieldFill.INSERT)
    private Integer type;

    @ApiModelProperty(value = "用户姓名")
    private String name;

    @ApiModelProperty(value = "账号")
    private String username;

    @ApiModelProperty(value = "密码")
    private String password;

    @ApiModelProperty(value = "头像地址")
    private String avatarUrl;

    @ApiModelProperty(value = "状态")
    @TableField(fill = FieldFill.INSERT)
    private Integer status;

    @ApiModelProperty(value = "电话")
    private String tel;

    @ApiModelProperty(value = "要素")
    private String element;

    @ApiModelProperty(value = "席位")
    private String seat;

    @ApiModelProperty(value = "IP")
    private String ip;

    @ApiModelProperty(value = "公钥")
    private String publicKey;

    @ApiModelProperty(value = "私钥")
    private String privateKey;

    private String address;

    private String keystore;

    @TableField(exist = false)
    private String oldPwd;

}
